@echo off
REM 使用指定的settings.xml运行Maven命令
REM 使用方法: mvn-with-settings.bat [maven命令]
REM 例如: mvn-with-settings.bat clean install

if "%1"=="" (
    echo 使用方法: mvn-with-settings.bat [maven命令]
    echo 例如: mvn-with-settings.bat clean install
    exit /b 1
)

echo 使用Maven配置文件: E:\maven\settings.xml
echo 执行命令: mvn %*

mvn -s "E:\maven\settings.xml" %* 